package com.dyava.commons.valueplus;

/**
 * Created by jjliu on 2017/9/10.
 */
public class ObjectPlus<V,P> {
    V value;
    P plus;

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    public P getPlus() {
        return plus;
    }

    public void setPlus(P plus) {
        this.plus = plus;
    }

    public static <V,P> ObjectPlus of(V v, P p){
        ObjectPlus<V,P> objectPlus= new ObjectPlus<V,P>();
        objectPlus.setValue(v);
        objectPlus.setPlus(p);
        return objectPlus;
    };
    public static <V> ObjectPlus of(V v){
        return of(v,null);
    };


}
